package bean;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
//@Service
//@Scope("prototype")
public class SomeBean {
//	@Autowired
//	private OtherBean otherBean;
	
//	@Autowired
//	@Qualifier("ob")
//	private OtherBean otherBean;
	
//	@Resource
//	@Resource(name="ob")
	private OtherBean otherBean;
	
	public void doSome(){
//		System.out.println(otherBean);
		System.out.println("SomeBean.doSome()");
	}
}
